import request from '@/utils/request'

// 连接车载终端
export function openVehicle(data) {
  return request({
    url: '/index/index/open',
    method: 'post',
    data:data
  })
}
// 断开车载终端
export function closeVehicle(data) {
  return request({
    url: '/index/index/close',
    method: 'post',
    data:data
  })
}
//模拟基础故障
export function sendBaseFault(vin) {
  return request({
    url: '/index/index/sendBaseFault/'+vin,
    method: 'post',
    data:vin
  })
}
//模拟车辆零配件故障组
export function sendPartsFault(vin) {
  return request({
    url: '/index/index/sendPartsFault/'+vin,
    method: 'post',
    data:vin
  })
}
//模拟车辆电池故障组
export function sendBatteryFault(vin) {
  return request({
    url: '/index/index/sendBatteryFault/'+vin,
    method: 'post',
    data:vin
  })
}
//模拟发送当前车辆位置
export function sendCurrentLocaltion(vin) {
  return request({
    url: '/index/index/sendCurrentLocaltion/'+vin,
    method: 'post',
    data:vin
  })
}
export function findByIm(data) {
  return request({
    url: '/manage/driver/findByIm',
    method: 'post',
    data:data
  })
}

